package com.sso.oauth2.server.constant;

/**
 * 授权类型枚举
 * @author yins
 * @date 2021-07-22
 */
public enum GrantTypes {

    AUTHORIZATION_CODE("authorization_code","授权码"),
    PASSWORD("password","密码授予"),
    IMPLICIT("implicit","隐秘模式"),
    CLIENT("client_credentials","客户端凭证"),
    REFRESH_TOKEN("refresh_token","令牌刷新");

    /**
     * 类型
     */
    public final String type;
    /**
     * 描述
     */
    public final String desc;

    GrantTypes(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }


}
